﻿using ServiceCore.Tool.TIM.chat_message;
using ServiceCore.Tool.TIM.im_open_login_svc;
using ServiceCore.Tool.TIM.sns;
using System;
using System.Collections.Generic;
using System.Text;

namespace ServiceCore.Tool.TIM
{
    public interface Itim_service
    {
        /// <summary>
        /// 计算 UserSig
        /// </summary>
        /// <param name="userid"></param>
        /// <returns></returns>
        string get_user_sign(string userid);

        #region 账号管理
        /// <summary>
        /// 账号管理
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        account_import_result account_import(account_import_post model);
        /// <summary>
        /// 导入多个账号
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        multiaccount_import_result multiaccount_import(multiaccount_import_post model);
        /// <summary>
        /// 删除账号
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        account_delete_result account_delete(account_delete_post model);
        /// <summary>
        ///  查询账号
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        account_check_result account_check(account_check_post model);
        /// <summary>
        /// 失效帐号登录态
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        kick_result kick(kick_post model);
        /// <summary>
        /// 查询帐号在线状态
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        querystate_result querystate(querystate_post model);
        #endregion 
        #region 单聊消息
        /// <summary>
        /// 单发单聊信息
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        sendmsg_result sendmsg(sendmsg_post model);
        /// <summary>
        /// 批量发送单聊信息
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        batchsendmsg_result batchsendmsg(batchsendmsg_post model);
        /// <summary>
        ///查询单聊消息
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        admin_getroammsg_result admin_getroammsg(admin_getroammsg_post model);
        /// <summary>
        /// 撤回单聊消息
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        admin_msgwithdraw_result admin_msgwithdraw(admin_msgwithdraw_post model);
        #endregion
        #region 关系链
        /// <summary>
        /// 添加好友
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        friend_add_result friend_add(friend_add_post model);
        /// <summary>
        /// 导入好友
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        friend_import_result friend_import(friend_import_post model);
        /// <summary>
        /// 删除好友
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        friend_delete_result friend_delete(friend_delete_post model);
        /// <summary>
        /// 更新好友
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        friend_update_result friend_delete(friend_update_post model);
        #endregion
    }
}
